try { var dummy = SimpleRecordSet; } catch ( e ) {

function SimpleRecordSet(){
}

SimpleRecordSet.getSimpleRecordSet = function(queryResult){

	// Create an array or records from the serverInfo object:
	var recordArray = [];
	var initialData = queryResult.serverInfo.initialData;
	var columnNames = queryResult.serverInfo.columnNames;
	
	for (var i = 0; i < initialData.length; i++){
		var row = initialData[i]; // array
		var item = new Object();
		for (var j = 0; j < row.length; j++){
			item[columnNames[j]] = row[j]; 
		}
		recordArray.push(item);
	}
	
	return recordArray;
}


} // end catch